How to remove duplicate elements from an array and also preserve the order in Python

join shbcf.ru